package com.zcx.qshop.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.zcx.qshop.R;
import com.zcx.qshop.QSApplication;

/**
 * Created by Administrator on 2015/9/3 0003.
 */
public class CommodityAssessStartView extends StartView {

    private Context context;

    private AttributeSet attrs;

    public CommodityAssessStartView(Context context, AttributeSet attrs) {

        super(context, attrs);

        this.context = context;

        this.attrs = attrs;

    }

    @Override
    protected boolean isClick() {

        return true;

    }

    @Override
    protected int max() {

        return 5;

    }

    @Override
    protected int selectYes() {

        return R.mipmap.commodity_assess_start_select;

    }

    @Override
    protected int selectNo() {

        return R.mipmap.commodity_assess_start;

    }

    @Override
    protected View getView(View view) {

        LayoutParams layoutParams = new LayoutParams(QSApplication.ScaleScreenHelper.getWidthHeight(41), QSApplication.ScaleScreenHelper.getWidthHeight(39));

        layoutParams.rightMargin = QSApplication.ScaleScreenHelper.getWidthHeight(35);

        view.setLayoutParams(layoutParams);

        return view;

    }

}
